<?php
	$this->breadcrumbs=$crumbs;

	$this->menu=array(
		array('label'=>'Upload Foto', 'url'=>array('foto/upload','ctrl'=>$ctrl)),
	);
	
	if(empty($model)) echo '<br/><br/><i>Foto belum ada</i>'; else
	foreach($model as $m){
		echo CHtml::image('uploads/'.$m->ft_filename,'Foto luas lahan',array('width'=>'320')).'<br/>';
		echo CHtml::link('download',array('foto/download','id'=>$m->ft_id)).' '.CHtml::link('delete',array('foto/delete','id'=>$m->ft_id,'ctrl'=>$ctrl),array('confirm','Hapus Foto ?')).'<br/>';
	}
	
?>